public class StringDemo7 {
    /**
     * @author dengjiangming
     * @date 2025-06-19
     * @version 1.0.0
     */

    //求字符串的字串
    public static void main(String[] args) {
        String s = "abcdef";
        //顾头不顾尾
        String s1 = s.substring(1,4);
        System.out.println(s1);
    }
}
